import {wx} from '../../../weixin2alipay/index.js';
import {Page,Component} from '../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'设置页面标题',
        "path":'packageAPI/pages/set-navigation-bar-title/set-navigation-bar-title'
};
    },
    "setNaivgationBarTitle"(e){
      const title = e.detail.value.title;
      console.log(title);
      wx.setNavigationBarTitle({
        title,
        "success"(){
          console.log('setNavigationBarTitle success');
        },
        "fail"(err){
          console.log('setNavigationBarTitle fail, err is',err);
        }
});
      return false;
    }
});

